package com.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class Explaindetailrecord implements Serializable {
    /**
     * 执行详情编号
     */
    private String exid;

    /**
     * 顾客编号
     */
    private String cid;

    /**
     * 套餐方案编号
     */
    private String smid;

    /**
     * 购买时间
     */
    private Date buytime;

    /**
     * 价格
     */
    private String smprice;

    /**
     * 活动备注
     */
    private String comment;

    /**
     * 营养计划编号
     */
    private Integer prid;

    private Setmeal setmeal;

    private static final long serialVersionUID = 1L;

    public String getExid() {
        return exid;
    }

    public void setExid(String exid) {
        this.exid = exid;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public String getSmid() {
        return smid;
    }

    public void setSmid(String smid) {
        this.smid = smid;
    }

    public Date getBuytime() {
        return buytime;
    }

    public void setBuytime(Date buytime) {
        this.buytime = buytime;
    }

    public String getSmprice() {
        return smprice;
    }

    public void setSmprice(String smprice) {
        this.smprice = smprice;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Integer getPrid() {
        return prid;
    }

    public void setPrid(Integer prid) {
        this.prid = prid;
    }

    public Setmeal getSetmeal() {
        return setmeal;
    }

    public void setSetmeal(Setmeal setmeal) {
        this.setmeal = setmeal;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Explaindetailrecord other = (Explaindetailrecord) that;
        return (this.getExid() == null ? other.getExid() == null : this.getExid().equals(other.getExid()))
            && (this.getCid() == null ? other.getCid() == null : this.getCid().equals(other.getCid()))
            && (this.getSmid() == null ? other.getSmid() == null : this.getSmid().equals(other.getSmid()))
            && (this.getBuytime() == null ? other.getBuytime() == null : this.getBuytime().equals(other.getBuytime()))
            && (this.getSmprice() == null ? other.getSmprice() == null : this.getSmprice().equals(other.getSmprice()))
            && (this.getComment() == null ? other.getComment() == null : this.getComment().equals(other.getComment()))
            && (this.getPrid() == null ? other.getPrid() == null : this.getPrid().equals(other.getPrid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getExid() == null) ? 0 : getExid().hashCode());
        result = prime * result + ((getCid() == null) ? 0 : getCid().hashCode());
        result = prime * result + ((getSmid() == null) ? 0 : getSmid().hashCode());
        result = prime * result + ((getBuytime() == null) ? 0 : getBuytime().hashCode());
        result = prime * result + ((getSmprice() == null) ? 0 : getSmprice().hashCode());
        result = prime * result + ((getComment() == null) ? 0 : getComment().hashCode());
        result = prime * result + ((getPrid() == null) ? 0 : getPrid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", exid=").append(exid);
        sb.append(", cid=").append(cid);
        sb.append(", smid=").append(smid);
        sb.append(", buytime=").append(buytime);
        sb.append(", smprice=").append(smprice);
        sb.append(", comment=").append(comment);
        sb.append(", prid=").append(prid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}